
<template>
    <div>
      <el-button v-hasPermi="props.tableItem.btnArray[0].hasPermi||[]"
                 style="padding: 5px" :size="'small'" type="primary" @click="props.tableItem.btnArray[0].handle(props.scope)" text>查看</el-button>
      <el-button v-hasPermi="props.tableItem.btnArray[1].hasPermi||[]"
                 v-if="props.scope.statusCode === 'non'" style="padding: 5px" :size="'small'" type="primary"
                 @click="props.tableItem.btnArray[1].handle(props.scope)" text>上传发票</el-button>
      <el-button v-hasPermi="props.tableItem.btnArray[2].hasPermi||[]"
                 v-if="props.scope.statusCode === 'effective'" style="padding: 5px" :size="'small'" type="primary"
                 @click="props.tableItem.btnArray[2].handle(props.scope)" text>下载发票</el-button>
      <el-button v-hasPermi="props.tableItem.btnArray[3].hasPermi||[]"
                 v-if="props.scope.statusCode === 'invalid'" style="padding: 5px" :size="'small'" type="primary"
                 @click="props.tableItem.btnArray[3].handle(props.scope)" text>重新申请</el-button>
      <el-button v-hasPermi="props.tableItem.btnArray[4].hasPermi||[]"
                 v-if="props.scope.statusCode === 'effective'" style="padding: 5px" :size="'small'" type="danger"
                 @click="props.tableItem.btnArray[4].handle(props.scope)" text>作废发票</el-button>
    </div>
</template>
<script setup>
import { onMounted } from 'vue'
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
onMounted(() => {
})
</script>
